<?php
session_start();
if(isset($_POST['hid']) && $_POST['hid']  == "1"){
    $_SESSION['login'] = $_POST['login'];
    $_SESSION['pwd'] = $_POST['pwd'];
    header("Location: checklogin.php");
}

include('includes/header.php');
?>
        <div class="connexion">
            <h2>Monitor</h2>
            <form method="post" action="logon.php">
                <input type="hidden" id="hid" name="hid" value="1" />
                <input type="text" id="login" name="login" value="" placeholder="Votre login..."/> <br />
                <input type="password" id="pwd" name="pwd" value="" placeholder="Password..."/><br />
                <button type="submit">Envoyer</button>
            </form>
        </div>
    </body>
</html>